#!/bin/bash
#system_profiler -xml SPNetworkDataType > tmp.plist && /usr/libexec/PlistBuddy -c "Print:0:_items:1:Ethernet:MAC\ Address" tmp.plist
macs="/tmp/macs"
`system_profiler SPNetworkDataType| grep "MAC Address" | sed "s/^[^:]*: //" > ${macs}`
cat "${macs}"

exec < ${macs}

while read LINE
do
	curl --insecure "https://registerip.denison.edu/services/delete.php?dpsUser=${DS_USER_LOGIN}&mac=${LINE}"
done
exit 0;
